import com.dinmax.mediacenter.*;

class MenuItem {
	private var _listener:MenuItemListener;
	private var movie:MovieClip;

	function MenuItem(_movie:MovieClip){
		movie=_movie;
	}
	
	public function addListener(listener:MenuItemListener){
		_listener=listener;
		movie.listener=_listener;
		movie.onPress=function(){
			this.listener.clipPress(this);
		}
		movie.onRelease=function(){
			this.listener.clipRelease(this);
		}
		movie.onReleaseOutside=function(){
			this.listener.clipReleaseOutside(this);
		}
		movie.onRollOut=function(){
			this.listener.clipRollOut(this);
		}
		movie.onRollOver=function(){
			this.listener.clipRollOver(this);
		}
	}
		
}